package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 操作日志
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpLog extends Model<JbdpLog> {

    private static final long serialVersionUID=1L;

    /**
     * 日志主键
     */
    @TableId("LOG_ID")
    private String logId;

    /**
     * 记录时间
     */
    @TableField("LOG_TIME")
    private LocalDateTime logTime;

    /**
     * 操作人ID
     */
    @TableField("USER_ID")
    private String userId;

    /**
     * 操作人姓名
     */
    @TableField("USER_NAME")
    private String userName;

    /**
     * 程序位置
     */
    @TableField("PLACE")
    private String place;

    /**
     * 操作类型
     */
    @TableField("DO_TYPE")
    private String doType;

    /**
     * 类型名称
     */
    @TableField("DO_TYPE_NAME")
    private String doTypeName;

    /**
     * 访问IP
     */
    @TableField("REQUEST_IP")
    private String requestIp;

    /**
     * 请求地址
     */
    @TableField("REQUEST_URL")
    private String requestUrl;

    /**
     * 日志详细
     */
    @TableField("CONTENT")
    private String content;


    public String getLogId() {
        return logId;
    }

    public JbdpLog setLogId(String logId) {
        this.logId = logId;
        return this;
    }

    public LocalDateTime getLogTime() {
        return logTime;
    }

    public JbdpLog setLogTime(LocalDateTime logTime) {
        this.logTime = logTime;
        return this;
    }

    public String getUserId() {
        return userId;
    }

    public JbdpLog setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public JbdpLog setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getPlace() {
        return place;
    }

    public JbdpLog setPlace(String place) {
        this.place = place;
        return this;
    }

    public String getDoType() {
        return doType;
    }

    public JbdpLog setDoType(String doType) {
        this.doType = doType;
        return this;
    }

    public String getDoTypeName() {
        return doTypeName;
    }

    public JbdpLog setDoTypeName(String doTypeName) {
        this.doTypeName = doTypeName;
        return this;
    }

    public String getRequestIp() {
        return requestIp;
    }

    public JbdpLog setRequestIp(String requestIp) {
        this.requestIp = requestIp;
        return this;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public JbdpLog setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
        return this;
    }

    public String getContent() {
        return content;
    }

    public JbdpLog setContent(String content) {
        this.content = content;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.logId;
    }

    @Override
    public String toString() {
        return "JbdpLog{" +
        "logId=" + logId +
        ", logTime=" + logTime +
        ", userId=" + userId +
        ", userName=" + userName +
        ", place=" + place +
        ", doType=" + doType +
        ", doTypeName=" + doTypeName +
        ", requestIp=" + requestIp +
        ", requestUrl=" + requestUrl +
        ", content=" + content +
        "}";
    }
}
